<template>
	<view>
		<uni-list>
			<uni-list-item v-for="(item,index) in options" :key="index" :title="item.key" :rightText="item.value">
				
			</uni-list-item>
		</uni-list>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				options: [],
				key: [{
						key: '批次号',
						value: 'pc'
					},
					{
						key: '后送类型',
						value: 'lx'
					},
					{
						key: '后送方式',
						value: 'fs'
					},
					{
						key: '处理时间',
						value: 'gxztsj'
					},
					{
						key: '送往',
						value: 'sw'
					},
					{
						key: '说明',
						value: 'bz'
					},
					{
						key: '状态',
						value: 'zt',
					},
					{
						key: '患者',
						value: 'xm',
					},
					{
						key: '后送时间',
						value: 'sj',
					},
					{
						key: '体位',
						value: 'tw',
					},
					{
						key: '担架',
						value: 'dj',
					},
					{
						key: '后送状态',
						value: 'hszt',
					}
					
				],
				formData:{}
			}
		},
		onLoad(option){
			var query=JSON.parse(option.data)
			console.log(query);
			this.key.forEach((item,index)=>{
				var key={
					value:query[item.value],
					key:item.key
				}
				this.options.push(key)
			})
		},
		methods: {
		}
	}
</script>

<style lang="scss">
::v-deep.uni-section .uni-section-header__decoration{
    margin-right: 6px;
    background-color: #23440d;
}
</style>